package com.jiazixuan.stock.service;

import com.jiazixuan.stock.pojo.domain.SysPermissionDomain;
import com.jiazixuan.stock.pojo.entity.SysPermission;
import com.jiazixuan.stock.vo.req.PermissionAddVo;
import com.jiazixuan.stock.vo.resp.R;

import java.util.List;

public interface PermissionService {
    /**
     * 查询所有权限集合
     */
    R<List<SysPermission>> getAllPermissions();

    /**
     *  添加权限时回显权限树，仅仅显示目录和菜单
     */
    R<List<SysPermissionDomain>> getPermissionsTree();

    /**
     * 权限添加按钮
     */
    R addPer(PermissionAddVo vo);

    /**
     * 更新权限
     */
    R updatePer(PermissionAddVo vo);

    /**
     * 删除权限
     */
    R deletePer(String permissionId);
}
